package com.example.sk;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.widget.ImageView;
import android.widget.TextView;

public class TestActivity extends Activity {
	ImageView iv1;
	TextView name1, area, info;
	@Override
	public void onCreate(Bundle savedInstanceState) {
	    super.onCreate(savedInstanceState);
	    setContentView(R.layout.detail);
	
	    iv1 = (ImageView) findViewById(R.id.iv1);
	    name1 = (TextView) findViewById(R.id.name1);
	    area = (TextView) findViewById(R.id.area);
	    info = (TextView) findViewById(R.id.info);
	    
	    Intent i = getIntent();
	    MyData data = (MyData)i.getParcelableExtra("data");
	    
	    iv1.setImageResource(data.imageResId);
	    name1.setText(name1.getText().toString()+data.text);
	    area.setText(area.getText().toString()+data.text2);
	    info.setText(data.text3);
	}
}

